'use strict';

function compute_average(collection) {
 let num= collection.reduce(function(sum,value){
   return sum+value;
 });
let result=num/collection.length;
 console.log(result);
 return result;
}
compute_average([1, 3, 5, 98, 67, 453]);
module.exports = compute_average;

